<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjr" uri="/struts-jquery-richtext-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="${pageContext.request.contextPath}/pages/admin/css/main.css"
	rel="stylesheet" type="text/css" />
<sj:head locale='zh-CN' jqueryui="true" />
<style type="text/css">
.formDiv div {
	display: inline;
}

.wwgrp {
	display: inline
}

.wwlbl {
	clear: both;
	float: left;
	display: inline;
	width: 100px;
}

.wwerr {
	display: inline;
	position: absolute;
	margin: 16px 0 0 80px;
}

.required {
	color: red;
}

.errorMessage {
	color: red;
	width: 200px;
	float: left;
	border: 1px solid;
}

.btnControl {
	margin-top: 20px;
}

.btnControl div {
	display: inline;
	margin-left: 5px;
}
</style>
</head>


<body>
	<div class="mtitle">
		<h1>
			<s:property value="%{getText('customer.add')}" />
		</h1>
		<!-- 
  <span> 跳转:
    <select class="fs_12" name="123">
      <option>所有频道</option>
    </select>
  </span>
   -->
	</div>
	<div class="tform">
		<!-- 操作按钮位置 -->
		<s:url action="%{actionName}!list" namespace="%{nameSpace}"
			var="entityListLink"></s:url>
		<button type='button' class="btn1"
			onClick="location='${entityListLink}';">
			<s:property value="%{getText('common.text.back')}" />
		</button>
		<!-- <button type='button' class="btn1" onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';">我的数据</button>        
        <button type='button' class="btn1" onClick="location='catalog_main.php';">栏目管理</button>
        <button type='button' class="btn1" name='bb1' onClick="location='makehtml_list.php?cid={dede:global.cid/}';">更新列表</button>
        <button type='button' class="btn1" name='bb2' onClick="location='makehtml_archives.php?cid={dede:global.cid/}';">更新数据</button>
        <button type='button' class="btn1" name='bb1' onClick="location='recycling.php?cid={dede:global.cid/}';">文章回收站</button>
         -->
	</div>

	<div>
		<div clss="formDiv" style="width: 400px; margin-left: 50px">
			<s:form method="post" namespace="%{nameSpace}">
				<s:token />
				<s:hidden key="customer.id"></s:hidden>
				<s:textfield key="customer.name" autocomplete="off" required="true" />
				<s:if test="customer!=null&&customer.id!=null">
					<s:textfield key="customer.username" autocomplete="off"
						required="true" readonly="true"/>
				</s:if>
				<s:else>
					<s:textfield key="customer.username" autocomplete="off"
						required="true" />
				</s:else>
				<s:textfield key="customer.password" autocomplete="off"
					required="true" />
				<sj:datepicker key="customer.birthday" displayFormat="yy-mm-dd" />
				<s:radio key="customer.gender" list="genderMap" />
				<s:textfield key="customer.email" autocomplete="off" required="true" />
				<s:textfield key="customer.address" autocomplete="off" />
				<s:textfield key="customer.mobilePhone" autocomplete="off"
					required="true" />
				<div class="btnControl">
					<s:if test="customer!=null&&customer.id!=null">
						<s:submit key="common.text.update" cssClass="btn1"
							action="%{actionName}!update" />
						<s:reset key="common.text.reset" cssClass="btn1"></s:reset>
					</s:if>
					<s:else>
						<s:submit key="common.text.save" cssClass="btn1"
							action="%{actionName}!save" />
						<s:reset key="common.text.reset" cssClass="btn1"></s:reset>
					</s:else>
				</div>
			</s:form>
		</div>

	</div>
</body>
</html>